#obj stands for object
#m stands for module/driver
#this is the list of modules that the kernel building system
#needs to build
   obj-m += memory.o

#Kernel building system (include files mostly)
#uname -r gives the version of the running kernel
   KDIR := /lib/modules/$(shell uname -r)/build

#current working directory - where to store the output
   PWD := `pwd`

#default build rule
default:
	 make -C $(KDIR) M=$(PWD) modules
all:
	make -C $(KDIR) M=$(PWD) modules
clean:
	make -C $(KDIR) M=$(PWD) clean